﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Web.SystemLogin.Models;
using DreamBuilder.Common;

namespace Web.SystemLogin.Services
{
    public interface ISystemLogin : IBusiness
    {
        string CheckLoginNameAvailable(string loginName);
        bool CheckUserPassword(string userID, string passwd);

        User GetCurrentUser(string userID);
        void UpdateUserLoginInfo(string userID);
        bool ValidateUser(string ldapServer, string userAccount, string passWord, string domain);
        string CheckCNPCLoginNameAvailable(string loginName);
        void UpdateUserCNPCLoginName(string cnpcUserID, string loginName);
        string CNPCVerification(string userID);
        string CheckOALoginNameAvailable(string loginName);
        bool CheckCnpcLogin(string userID);
        string GetUserAllOrgName(string userID);
        string GetUserOrgName(string userID);
        string GetUserIdByLoginId(string loginId);
        bool ValiadateUserPWD(string logonName, string pwd, string validateType);
        bool UpdateUserPassword(string loginname, string password);
    }
}
